import java.io.Serializable;
import java.util.HashMap;

public class Packet implements Serializable
{
    public enum PacketType
    {
        ACK, ChatMsg, ClientTable, RegRequest, LoginRequest, LogoffRequest, OfflineMsg
    }

    PacketType type;
    Object data;

    public Packet(PacketType type, Object data)
    {
        this.type = type;
        this.data = data;
    }
}
